def test(app):
    @app.route('/test', methods=['GET'])
    def test():
        return 'flask框架success'